<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'home_top.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

	</head>
	<link rel="stylesheet" href="css/nivo-slider.css" type="text/css"
		media="screen" />
	<link rel="stylesheet" href="css/style.css" type="text/css"
		media="screen" />
	<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css"
		media="screen" />
	<script type="text/javascript" src="js/jquery-1.3.1.min.js"></script>
	<script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
	<script type="text/javascript" src="js/bootstrap-validation.js"></script>
	<body>
		<div id="container">
			<jsp:include page="head.jsp"></jsp:include>
			<div class="menu">
				<ul id="menu">
					<li>
						<a class="l1" href="home.jsp"></a>
					</li>
					<li>
						<a class="l2" href="line.jsp"></a>
					</li>
					<li>
						<a class="l3" href="station.jsp"></a>
					</li>
					<li>
						<a class="l4" href="stos.jsp"></a>
					</li>
					<li>
						<div class="denglu l5" id="show"></div>
					</li>
				</ul>
			</div>
		</div>
		<div id="center">
			<form id="form" name="form" action="getStationServlet" method="post"
				class="form-horizontal">
				<fieldset>
					<legend>
						站点查询
					</legend>
					<div class="control-group">
						<label class="control-label" for="input01">
							<span class="ziti">请输入站点名</span>:
						</label>
						<div class="controls">
							<input name="username" type="text" class="input-xlarge height"
								check-type="required" required-message="站点名不能为空" id="input01">
							<p class="help-inline error"></p>
						</div>
					</div>
					<div class="control-group">
						<label class="control-label" for="input01"></label>
						<div class="controls">
							<button type="submit" class="btn  btn-primary">
								查询
							</button>
						</div>
					</div>
				</fieldset>
			</form>
			<div class="tab">
			<c:if test="${not empty searchStation}">
				<table class=" wsize table table-striped  ">
					<tr>
						<td>
							站点号
						</td>
						<td>
							站点名
						</td>
						<td>
							所经过的线路
						</td>
						<td>
							地址
						</td>
					</tr>
					<tr>
						<td>
							${(requestScope.searchStation).stationId}
						</td>
						<td>
							${(requestScope.searchStation).stationName}
						</td>
						<td>
							${(requestScope.searchStation).linelist}
						</td>
						<td>
							${(requestScope.searchStation).address}
						</td>
					</tr>
				</table>
				</c:if>
			</div>
		</div>
		<jsp:include page="foot.jsp"></jsp:include>
		<script type="text/javascript">
	$('#form').validation();
	$('#form').fieldValidation();
</script>
	</body>
</html>